From: Mukesh Rathor Date: Wed, 13 Nov 2013 08:40:41 +0000 (+0100) Subject: pvh: disable 32-bit guest support for now X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~5962 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=c50d59f962ac4e9ff77680020f446109994e421c;p=xen.git pvh: disable 32-bit guest support for now Removing the assert allows the PVH code to call this during vmcs construction in a later patch, making the code more robust by removing duplicate code. To be implemented. Signed-off-by: Mukesh Rathor Signed-off-by: George Dunlap Reviewed-by: Jan Beulich Acked-by: Tim Deegan Acked-by: Keir Fraser Acked-by: Eddie Dong --- diff --git a/xen/arch/x86/domain.c b/xen/arch/x86/domain.c index 5ec992db81..45e5afead7 100644 --- a/xen/arch/x86/domain.c +++ b/xen/arch/x86/domain.c @@ -339,6 +339,14 @@ int switch_compat(struct domain *d) if ( d == NULL ) return -EINVAL; + + if ( is_pvh_domain(d) ) + { + printk(XENLOG_G_INFO + "Xen currently does not support 32bit PVH guests\n"); + return -EINVAL; + } + if ( !may_switch_mode(d) ) return -EACCES; if ( is_pv_32on64_domain(d) )